﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <script type="text/javascript" src="../../Content/highlighter/scripts/shCore.js"></script>
    <script type="text/javascript" src="../../Content/highlighter/scripts/shBrushCSharp.js"></script>
    <script type="text/javascript" src="../../Content/highlighter/scripts/shBrushXml.js"></script>
    <link type="text/css" rel="stylesheet" href="../../Content/highlighter/styles/shCore.css" />
    <link type="text/css" rel="stylesheet" href="../../Content/highlighter/styles/shCoreEclipse.css" />
    <script type="text/javascript">SyntaxHighlighter.all();</script>
</head>
<body>
    <h3>Chloe.ORM 详细介绍</h3>
    <p>
        一款轻量、高效的.net C#数据访问框架(ORM)。<br />
        实体为纯POCO，支持.net core，支持基本数据类映射的同时也支持枚举类型。<br />
        查询接口借鉴linq，支持lambda表达式，高效便捷开发。<br />
        借助lambda表达式，完全用面向对象的方式就能轻松执行多表连接查询、<br />
        分组查询、聚合函数查询、插入数据、删除和更新满足条件的数据等操作，<br />
        完全不需要拼接sql，开发容错率极高。<br />
        当然也提供原生sql查询，原生sql查询在速度、性能上可与传说中的Dapper媲美。<br />
        框架设计主打轻量、用法简单，编译后dll体积不足200KB，无第三方依赖，点击查看更多介绍... <br />
    </p>
    <b>Example:</b>
    <pre class="brush:csharp;">
        IDbContext context = new MsSqlContext(DbHelper.ConnectionString);
        IQuery q = context.Query();
        q.Where(a => a.Id == 1).FirstOrDefault();
        q.Where(a => a.Id > 0).OrderBy(a => a.Id).ThenByDesc(a => a.Age).Skip(1).Take(999).ToList();

        IQuery q1 = context.Query();
        q.InnerJoin(q1, (a, b) => a.Id == b.Id).Select((a, b) => new { A = a, B = b }).ToList();
    </pre>
    <a href="http://www.52chloe.com/Wiki/Document/">查看帮助文档</a>
</body>
</html>